package store.aixx.jwt.demo.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author yukai
 * @since 2021年12月10日 23:27
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "jwt-demo")
public class AppProperties {

    private Jwt jwt = new Jwt();

    @Data
    public static class Jwt{
        private Long accessTokenExpireTime = 60_000L;

        private Long refreshTokenExpireTime = 30 * 24 * 3600 *  1000L;
    }
}
